package day04.JavaCodePractice;
import java.util.Scanner;

public class JavaCodePractice1 {
    public static void main(String[] args) {
        /*
        switch (command) {
            case 1:
                System.out.println("取款业务...");
                break;
            case 2:
                System.out.println("取款业务...");
                break;
            case 3:
                System.out.println("查询余额业务...");
                break;
            case 4:
                System.out.println("退卡成功");
                break;
            default:
                System.out.println("输入错误");
        }
         */

        //:

        /*
        //第一遍
        Scanner scan = new Scanner(System.in);
        int num = 250;

        System.out.println("猜吧!");
        int guess = scan.nextInt();
        while (guess != num) {
            if (guess > num) {
                System.out.println("猜大了");
            } else {  System.out.println("猜小了");
            }
            System.out.println("猜吧!");
            guess = scan.nextInt();
        }
        System.out.println("恭喜你猜对了!");
         */

        /*
        //第二遍:

         */

        /*
        do {
            System.out.println("猜吧!");
            guess = scan.nextInt();
            if (guess > num) {
                System.out.println("猜大了");
            } else if (guess < num) {
                System.out.println("猜小了");
            } else {
                System.out.
            }
         */

        //第一遍:
        /*
        for (int num = 1; num < 9; num++) {
            System.out.println(num + "*9-" + num * 9);
        }

        for (int num = 1; num <= 9; num += 2) {
            System.out.println(num + "*9=" + num * 9);
        }

        for (int num = 9; num >= 1; num--) {
            System.out.println(num + "*9=" + num * 9);
        }
         */
    }
}
